package com.yht.org.service;

import com.yht.basic.util.QueryResult;
import com.yht.org.domain.Department;
import com.yht.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    /*添加*/
    void add(Department department);
    /*删除*/
    void delete(Long id);
    /*修改*/
    void update(Department department);
    /*根据id查询*/
    Department findById(Long id);
    /*查询所有*/
    List<Department> findAll();
    /*分页查询*/
    QueryResult<Department> findByDepartmentQuery(DepartmentQuery departmentQuery);
    /*批量删除*/
    void batchDelete(List<Long> ids);
    /*获取表单级联树*/
    List<Department> getTree();
}
